package com.backend.springboot_project_demo.mappers;

import com.backend.springboot_project_demo.entity.User;
import com.backend.springboot_project_demo.entity.UserTransfer;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.stream.Collectors;

@Repository
public interface UserMapper {
    List<User> findUsers();

    List<User> getUsersByPage(UserTransfer userTransfer);

    User findUserById(String id);

    List<User> findUserByUsername(String username);

    boolean addUser(User user);

    boolean deleteUser(String id);
}
